local qizhou = fk.CreateSkill {

  name = "joy__qizhou",

  tags = { Skill.Compulsory, },

}



qizhou:addEffect(fk.AfterCardsMove, {
  refresh_events = {fk.AfterCardsMove},
  can_refresh = function(self, event, target, player, data)
    if player:hasSkill(qizhou.name) then
      for _, move in ipairs(data) do
        if move.to==player and move.toArea == Card.PlayerEquip then
          return true
        end
        if move.from==player then
          for _, info in ipairs(move.moveInfo) do
            if info.fromArea == Card.PlayerEquip then
              return true
            end
          end
        end
      end
    end
  end,
  on_refresh = function(self, event, target, player, data)
    QizhouChange(player, 1, "ex__yingzi")
    QizhouChange(player, 2, "joy__qixi")
    QizhouChange(player, 3, "ty_ex__xuanfeng")
    QizhouChange(player, 4, "duanbing")
  end,
})

return qizhou